package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class RunfastPictureclass implements Serializable {
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 是否删除（0、是，1、否）
     */
    private Integer isdelete;

    /**
     * 父类ID
     */
    private Integer parentid;

    /**
     * 创建时间
     */
    private Date createtime;

    /*子分类*/
    private List<RunfastPictureclass> childClass;
    public List<RunfastPictureclass> getChildClass() {
        return childClass;
    }
    public void setChildClass(List<RunfastPictureclass> childClass) {
        this.childClass = childClass;
    }
    /////////

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastPictureclass withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public RunfastPictureclass withName(String name) {
        this.setName(name);
        return this;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIntroduction() {
        return introduction;
    }

    public RunfastPictureclass withIntroduction(String introduction) {
        this.setIntroduction(introduction);
        return this;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public RunfastPictureclass withIsdelete(Integer isdelete) {
        this.setIsdelete(isdelete);
        return this;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public Integer getParentid() {
        return parentid;
    }

    public RunfastPictureclass withParentid(Integer parentid) {
        this.setParentid(parentid);
        return this;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastPictureclass withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", introduction=").append(introduction);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", parentid=").append(parentid);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}